//
//  SEPrescriptionDrug.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/5/11.
//

import HandyJSON

struct SEPrescriptionDrugPickList: HandyJSON {
    var pageNum: Int = 0
    var pageSize: Int = 0
    var total: Int = 0
    var totalPage: Int = 0
    var list: [SEPrescriptionDrugPick]?
}

struct SEPrescriptionDrugPick: HandyJSON {
    var code: String?
    var id: String?
    var name: String?
}

/**
 actNumber = "";
 anthesiaAndPoisonLevel = 0;
 antibioticLevel = 0;
 approvalNumber = "";
 available = 1;
 baseCount = 1;
 baseUnit = g;
 category = 2;
 classfication = "\U8840\U6d46\U53ca\U8840\U6d46\U4ee3\U7528\U54c1";
 code = 3;
 conentrantion = 0;
 createTime = "2021-05-12 10:53:09";
 creator = 0;
 currencyName = "\U7f9f\U4e59\U57fa\U6dc0\U7c89130/0.4\U6c2f\U5316\U94a0\U6ce8\U5c04\U6db2";
 dosageUnit = g;
 dosageValue = 0;
 drugDosageType = "\U6ce8\U5c04\U5242";
 drugSpecification = "0.000g:500.000ml";
 drugUsing = "";
 englishName = "Hydroxyethyl starch 130/0.4 and Sodium Chloride";
 hospitalId = 1;
 id = 4;
 inPrice = "";
 isDeleted = 0;
 isUseOnline = 0;
 manufacturer = "";
 minPackageUnit = "\U74f6";
 name = "\U67b8\U675e";
 operator = "";
 outPatentValue = 25;
 outPatientUnit = "\U74f6";
 outPatientUnitCode = "";
 outPrice = 49;
 provideId = "";
 pyName = qyjdflhnzsy;
 specialUnit = "";
 updateTime = "";
 volume = 500;
 volumeUnit = ml;
 */
/// 处方药品
struct SEPrescriptionDrug: HandyJSON {
    var id: String?                 // 药品id
    var medicineId: String?         // 药品id
    var createTime: Date?
    var updateTime: Date?
    var creator: String?
    var `operator`: String?
    var isDeleted: Int = 0
    var prescriptionId: String?     // 处方id
    var name: String?               // 药品名称
    var pyName: String?             // 名称拼音首字母
    var currencyName: String?       // 药品通用名称
    var drugDosageType: String?     // 药品剂型, 例如：颗粒, 粉末, 丸, 液体等
    var drugDosageTypeCode: String? // 药品剂型字典表code
    var drugSpecification: String?  // 药品规格
    var drugNumber: String?         // 药品数量
    var baseUnit: String?           // 数量单位 例如：盒，袋，瓶
    var baseCount: String?          // 单位包装数量 例如：阿莫西林每盒包装数量为20，意思是说每盒有20颗药
    var baseUnitCode: String?       // 最小单位字典code
    var drugFrequency: String?      // 使用频率例如：1天1次，1天3次
    var drugFrequencyCode: String?  // 使用频率字典code
    var drugDose: String?           // 剂量一次的使用量
    var dosageValue: String?        // 质量值
    var dosageUnit: String?         // 剂量单位例如：ml,mg等，是字典
    var dosageUnitCode: String?     // 剂量单位字典code
    var drugDate: Int = 0           // 用药天数
    var drugChannel: String?        // 用药方式
    var drugChannelCode: String?    // 用药方式字典code
    var drugPosition: String?       // 用药部位
    var drugUsing: String?          // 药品用法
    var inPrice: String?            // 进价
    var outPrice: String?           // 售价, 单价: 分
    var volume: String?             // 体积值
    var volumeUnit: String?         // 体积单位
    var available: Int = 0          // 是否在用 0-不用 1-在用
    var isUseOnline: Int = 0        // 是否互联网药品 0-不是 1-是
    var anthesiaAndPoisonLevel: String? // 毒麻药级别
    var antibioticLevel: Int = 0    // 抗菌药级别
    var classfication: String?      // 分类
    var minPackageUnit: String?     // 最小包装单位
    var outPatientUnitCode: String? // 开单单位字典编码
    var outPatientUnit: String?     // 开处方时候用的单位
    var outPatentValue: String?     // 开单使用单位用量，如：倍然包装量为28
    var specialUnit: String?        // 特殊用量单位
    var hospitalId: String?
    var category: Int = 0           // 药品类型 1-西药 2-中药
    var englishName: String?
    var code: String?
    var approvalNumber: String?     // 批准文号
    var actNumber: String?          // ATC编码
    var provideId: String?          // 供应商如果药品是医院提供的就写hospital_id,如果是药店提供的就是写药店编码
    var conentrantion: String?      // 浓度
    var groupNo: Int = 0            // 组编号
    var drugPositionCode: String?   // 用药部位字典code
    var comment: String?            // 脚注（中药使用方法枚举）
    var manufacturer: String?
}
